package com.yangxf.springcloud.service;

import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentHystrixService { // 服务降级通用类

    @Override
    public String pamentInfo_ok(int id) {
        return "pamentInfo_ok 超时或错误 o(╥﹏╥)o";
    }

    @Override
    public String pamentInfo_error(int id) {
        return "pamentInfo_error 超时或错误 o(╥﹏╥)o";
    }
}
